package pers.sloera.tulin;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.locks.ReentrantLock;

/**
 * class pers.sloera.tulin
 * user sloera
 * date 2022/3/8
 */
public class Test1 {
    static final ReentrantLock reentrantLock = new ReentrantLock();

    public static void main(String[] args) {
        reentrantLock.lock();
        reentrantLock.tryLock();
        final CountDownLatch countDownLatch = new CountDownLatch(2);
        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        final ThreadLocal<String> stringThreadLocal = new ThreadLocal<>();
        stringThreadLocal.set("1");
        stringThreadLocal.get();
    }
}
